import { GETDATA } from '../constants'

export default function reducer(state = {}, action) {
    let { type, payload } = action;
    if (type === GETDATA) {
        state = payload;
        return state;
    }
    return state;
}